package com.sizu.service;

import com.sizu.common.saledto.TCustomerReturnListDto;
import com.sizu.common.saledto.TSaleListDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("jxc-back")
public interface SyncService {
    /**
     * 出售同步
     * @param tSaleListDto
     */
    @RequestMapping("/statement/sale")
    public void syncSale(@RequestBody TSaleListDto tSaleListDto);

    /**
     * 退货同步
     * @param tCustomerReturnListDto
     */
    @RequestMapping("/statement/customerreturn")
    public void syncCustomerreturn(@RequestBody TCustomerReturnListDto tCustomerReturnListDto);
}
